#!/bin/sh
# $1 : rep de stockage

stockage=http://quent.fr/GICOM

#sudo apt-get update -qq
#sudo apt-get install -y -qq apache2-mpm-prefork libapache2-mod-jk


#cd 
#wget -nv $stockage/conf/httpd.conf
#wget -nv $stockage/conf/worker.properties

#sudo cp httpd.conf /etc/apache2/httpd.conf


#sudo cp worker.properties /etc/libapache2-mod-jk/workers.properties




#sudo /etc/init.d/httpd start

wget -nv $stockage/script/createConfLb.sh
wget -nv $stockage/script/createConfLb.xml
#+un.deploy

sudo yum install -y httpd
wget -nv $stockage/conf/httpd.conf
sudo cp httpd.conf /etc/httpd/conf/

wget -nv $stockage/conf/worker.properties
sudo cp worker.properties /etc/httpd/conf/


wget -nv $stockage/conf/jpackage.repo
sudo cp jpackage.repo /etc/yum.repos.d/jpackage.repo

sudo yum install mod_jk-ap20

sudo /etc/init.d/httpd stop
sudo /etc/init.d/httpd start
